package org.shj.spring.boot.base.param;

public class Sort {
    private String name;
    private SortEnum order = SortEnum.DESC;

    public Sort(){}

    public Sort(String name) {
        this.name = name;
    }

    public void asc() {
        this.order = SortEnum.ASC;
    }

    public void desc() {
        this.order = SortEnum.DESC;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SortEnum getOrder() {
        return order;
    }

    public void setOrder(SortEnum order) {
        this.order = order;
    }




}
